package com.example.stock.entity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.stock.comm.StrategyEnum;
import com.example.stock.entity.eo.StockTradeEo;
import com.example.stock.vo.ScoreVo;
import com.example.stock.vo.ViewVo;
import com.example.stock.vo.common.TradeVo;

import java.time.LocalDateTime;
import java.util.List;

public interface IStockTradeService extends IService<StockTradeEo> {

    Double doTrade(List<TradeVo> tradeVos, boolean save, String tsCode, StrategyEnum strategyEnum);

    boolean emptyHold(StockTradeEo hold);

    List<ViewVo> getViewVo(List<LocalDateTime> listDate, List<StockTradeEo> stockTradeEos);

    ScoreVo getScore(List<StockTradeEo> stockTradeEos);
}
